class car(object):
    def __init__(self,type ,nu):
       self.type=type
       self.nu=nu
    def start(self):
        pass
    def stop(self):
        pass
    def test(self):
        print('lalal')
class taxi(car):
    def __init__(self,type,nu,company):
       super().__init__(type,nu)
       self.company=company

    def start(self):
        print(f'乘客您好我是{self.company}公司的，车是{self.nu}{self.type}上车愉快')
    def stop(self):
        print(f'目的地到了')
class familycar(car):
    def __init__(self,type,nu,name):
        super().__init__(type,nu)
        self.name = name
    def start(self):
        print(f'我是{self.name }我的车是{self.nu}{self.type}我的车我做主')
    def stop(self):
        print('目的地到了')

if __name__ == '__main__':
    p1=taxi('大众','鲁p12456','好运来')
    p2=familycar('宝马','京1111','武大郎')
    p1.start()
    #p1.test()
    p1.stop()
    p2.start()
    p2.stop()

